<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        td{border: 1px solid #000;}
    </style>
</head>

<body>
    <script>
        function getMax(num1, num2) {
            console.log(arguments.length) //实参个数 3
            console.log(arguments.callee)  //获取getMax函数
            console.log(arguments.callee.length) //形参个数2
            return num1 > num2 ? num1 : num2

        }
        console.log(getMax(10, 2, 100))

        function printTable(row, col) {
            document.write('<table>')
            for (var i = 0; i < row; i++) {
                document.write('<tr>')
                for (var j = 0; j < col; j++) {
                    document.write('<td>aaa</td>')
                }
                document.write('</tr>')
            }
            document.write('</table>')
        }
        printTable(3,4)
    </script>
</body>

</html>